#include "myFunctions.h"
#include<math.h>
#include "gnuplot.h"
#include <stdio.h>
#include <string.h>


using namespace std;

/**
Clase que modela un perceptron simple
*/
class Perceptron{
private:
	vector<double> w;
	int n, nMaxIt;
	double tasa, delta;
	bool zero,error,maxIt,varW;
public:
	void printXeYe();
	Perceptron();
	~Perceptron(){};
	Perceptron(Perceptron*);
	Perceptron(int,double,double,int,bool,bool,bool,bool);
	void training(mdouble &Xe,vector<int>&ye, bool);
	double testWithFile(mdouble &X, vector<int> &y);
	void testWithConsole();
	void printWeights();
	void setWeights(vector<double> &W);
	int output(vector<double> &X);
};
